package com.c.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.c.entity.FoodGroup;
import com.c.entity.HealthGroup;
import com.c.utils.PageResult;
import com.c.utils.QueryPageBean;
import com.c.utils.Result;

import java.util.List;

/**
 * @author wangxiangli
 * @create 2022-12-31-13:04
 */
public interface HealthGroupService extends IService<HealthGroup> {

    //健康方案分页查询
    PageResult pageQuery2(QueryPageBean queryPageBean);
    //新增健康方案
    void add(HealthGroup healthGroup, Integer[] healthitemIds);
    //根据健康组ID查询健康组包含的多个健康项ID
    List<Integer> findHealthItemIdsByHealthGroupId(Integer id);
    //编辑健康组信息和关系表信息
    void edit(HealthGroup healthGroup, Integer[] healthitemIds);
    //删除健康方案和t_sportgroup_sportitem表对应关系
    Result deleteById(Integer id);
}
